package cn.edu.ustc.xrovers.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class BalanceSheet {

	private Integer id;
	private int year;
	private double nr;//应收票据
	private double ar;//应收款账
	private double inventory;//存货
	private double tca;//流动资产合计
	private double fa;//固定资产
	private double ia;//无形资产
	private double da;//递延资产
	private double ta;//资产总计
	private double pi;//应付利息
	private double tcl;//流动负债合计
	private double tl;//负债合计
	private double oe;//所有者权益
	private double si;//现销收入
	private double ad;//折旧累计
	private Company company;
	
	
	@Column(name="Bal_AccumulatedDepreciation")
	public double getAd() {
		return ad;
	}
	@Column(name="Bal_AccountsReceivable")
	public double getAr() {
		return ar;
	}
	@ManyToOne
	@JoinColumn(name="Company_ID")
	public Company getCompany() {
		return company;
	}
	@Column(name="Bal_DeferredAsset")
	public double getDa() {
		return da;
	}
	@Column(name="Bal_FixedAsset")
	public double getFa() {
		return fa;
	}
	@Column(name="Bal_IntangibleAsset")
	public double getIa() {
		return ia;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	@Column(name="Bal_Inventory")
	public double getInventory() {
		return inventory;
	}
	@Column(name="Bal_NotesReceivable")
	public double getNr() {
		return nr;
	}
	@Column(name="Bal_OwnersEquity")
	public double getOe() {
		return oe;
	}
	@Column(name="Bal_PayableInterest")
	public double getPi() {
		return pi;
	}
	@Column(name="Bal_SpotIncome")
	public double getSi() {
		return si;
	}
	@Column(name="Bal_TotalAsset")
	public double getTa() {
		return ta;
	}
	@Column(name="Bal_TotalCurrentAsset")
	public double getTca() {
		return tca;
	}
	@Column(name="Bal_TotalCurrentLiability")
	public double getTcl() {
		return tcl;
	}
	@Column(name="Bal_TotalLiability")
	public double getTl() {
		return tl;
	}
	
	@Column(name="Bal_Year")
	public int getYear() {
		return year;
	}
	
	
	/*set方法*/
	public void setAd(double ad) {
		this.ad = ad;
	}
	public void setAr(double ar) {
		this.ar = ar;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public void setDa(double da) {
		this.da = da;
	}
	public void setFa(double fa) {
		this.fa = fa;
	}
	public void setIa(double ia) {
		this.ia = ia;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setInventory(double inventory) {
		this.inventory = inventory;
	}
	public void setNr(double nr) {
		this.nr = nr;
	}
	public void setOe(double oe) {
		this.oe = oe;
	}
	public void setPi(double pi) {
		this.pi = pi;
	}
	public void setSi(double si) {
		this.si = si;
	}
	public void setTa(double ta) {
		this.ta = ta;
	}
	public void setTca(double tca) {
		this.tca = tca;
	}
	public void setTcl(double tcl) {
		this.tcl = tcl;
	}
	public void setTl(double tl) {
		this.tl = tl;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
}
